package com.example.eshop_ssm.entity;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class TbOrderInfo implements Serializable {

  private String orderId;
  private Integer userId;
  private String address;
  private String person;  //收货人
  private String phone;
  private Double orderPrice;
  private String orderDate;
  private Integer statusPay;
  private Integer statusSend;
  private Integer statusReceiving;
  private Integer status;    //状态，1正常，-1取消
  private String timePay;
  private String timeShipments; //发货时间
  private String shipmentsNo;  //发货单号
  private String userName;   //订单号里的用户ID对应的用户名
  private TbUserInfo tbUserInfo; //一个订单对应一个用户

  private String orderStatus;  //存储订单总状态，见service层

}
